<?php
html::printPath(html::createCrudPath('account', $account, array('first_name', 'last_name'), 'id'));
$msg->printMessages();

$fb = new FormBuilder('account', $account);
$fb->text('login')->required();
$fb->password('password')->required();
$fb->yesNoBox('is_admin')->noEmptyOption();
$fb->spacer();
$fb->text('first_name')->required();
$fb->text('last_name')->required();
$fb->text('other_names')->hint();
$fb->text('title')->required();
$fb->radioButtons('gender', array('M','F'), 'person.gender-')->required();
$fb->date('birth_date')->required();
$fb->text('idcard_number');
$fb->text('street');
$fb->text('city');
$fb->text('postal_code');
$fb->comboBox('country_code', $countryOptions);
$fb->text('telephone');
$fb->text('email');
$fb->textarea('notes');
$fb->submitButton();
$fb->write();
?>
